package fdq.mapper;

import fdq.entity.Animal;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

public interface AnimalMapper {
    @Select("select * from animals where aid in (select result from rules where feature = #{fid} and isanimal=1)")
    ArrayList<Animal> selectAnimalsByFid(int fid);

    @Select("select * from animals")
    ArrayList<Animal> selectAllAnimal();
}
